package com.webreport.model.db;

public class RoleReportId implements java.io.Serializable {
	private static final long serialVersionUID = -3265538627981928755L;
	private String rolename;
	private String reportid;
	
	public String getRolename() {
		return rolename;
	}
	
	public void setRolename(String rolename) {
		this.rolename = rolename;
	}
	
	public String getReportid() {
		return reportid;
	}
	
	public void setReportid(String reportid) {
		this.reportid = reportid;
	}
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((reportid == null) ? 0 : reportid.hashCode());
		result = prime * result + ((rolename == null) ? 0 : rolename.hashCode());
		return result;
	}
	
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RoleReportId other = (RoleReportId) obj;
		if (reportid == null) {
			if (other.reportid != null)
				return false;
		} else if (!reportid.equals(other.reportid))
			return false;
		if (rolename == null) {
			if (other.rolename != null)
				return false;
		} else if (!rolename.equals(other.rolename))
			return false;
		return true;
	}
	
}
